package com.base.test.mysql2es.model;

import lombok.Getter;
import lombok.Setter;

import java.time.Duration;
import java.util.Collections;
import java.util.List;

/** @see org.springframework.boot.autoconfigure.elasticsearch.rest.RestClientProperties */
@Getter
@Setter
public class EsProperties {

    private List<String> uris = Collections.singletonList("http://127.0.0.1:9200");

    private String username;

    private String password;

    private Duration connectionTimeout = Duration.ofSeconds(1);

    private Duration readTimeout = Duration.ofSeconds(30);
}
